﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ITQUIZ
{
    public class EasyQuestion : Question
    {

        public int questionNum { get; set; }
        private static string path = @"../../EasyQuestions/EasyQuestions.txt";
        //A bad workaround follows
        public string GetQuestion()
        {
            return ReturnQuestion(path, questionNum);
            
        }
        
        //All answers are non-zero based because of the way text files are named (they start from 1)
        public string GetQuestionAnswer(int ansNum)
        {
            ansNum++;
            string[] answers = GetAnswer(questionNum, @"../../EasyQuestions/Answers/Answers");
            
            return answers[ansNum]; 
        }

        public int GetCorrectAnswer()
        {
            return ReturnQuestionCorrectAnswer(@"../../EasyQuestions/Answers/CorrectAnswer.txt",questionNum);
        }
    }
}
